package com.thoughtworks.videorental.domain;

public class NewReleasePrice implements Price {

	public double getCharge(final int daysRented) {
		/*if (daysRented >= 7){
			return (daysRented - 1)*3;
		}*/
		if (daysRented > 1){
			return 3;
		}
		return daysRented * 3;
	}

	public int getFrequentRenterPoints(final int daysRented) {
		// add bonus for a two day new release rental
		if (daysRented > 1)
			return 2;
		else
			return 2;
	}

    @Override
    public String getDisplayName() {
        return "New Release";
    }

}
